package com.zzyl.controller;

import com.zzyl.base.ResponseResult;
import com.zzyl.entity.NursingPlan;
import com.zzyl.service.NursingPlanService;
import com.zzyl.vo.NursingPlanVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@RestController
@RequestMapping("/nursing/plan")
@Api(tags = "护理计划")

public class NursingPlanController extends BaseController{
   @Resource
    private NursingPlanService nursingPlanService;

   @ApiOperation(value = "查询所有护理计划")
   @GetMapping
   public ResponseResult<List<NursingPlanVo>> findAll(){
       return success(nursingPlanService.findAll());
   }
}
